package com.um.jdy.common.charge.code;

import com.um.springboot.starter.utils.EnumUtil;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @Title 订单相关错误代码
 * @Description
 * @Author renjunwei
 * @Date 2022/7/26 10:18
 */
@Getter
@AllArgsConstructor
public enum OrderCode implements EnumUtil.ErrorEnum {

    HasUncompleteOrder(16001, "检测到您当前有未完结的订单，请结算后重试!"),
    NoOrder(16002, "订单不存在!"),
    OrderCompleted(16003, "订单已完成!"),
    HasChargingOrder(16004, "您有正在充电中的订单!"),
    CouponInvalid(16005, "优惠券无效!"),
    Paid(16006, "订单已支付!"),
    TimingChargeStarted(16007, "定时充电已开始，无法修改时间!"),
    TimingChargeExist(16008, "此设备该时段已有定时充电!"),
    GenerateReportError(16009, "生成充电记录报告错误!"),
    NotSelectOrder(16010, "请选择订单"),
    OrderRefunded(16011, "订单已退款!"),
    ExceedPayAmount(16012, "退款金额超出支付金额!"),
    RefundNotLessZero(16013, "退款金额需要大于0!"),
    OrderUncomplete(16014, "订单未完成!"),


    UnsupportPayWay(16015, "暂不支持该支付方式!"),
    UnPayNotSupportReturn(16016,"订单未支付不支持退款！"),
    PlacingCannotPaid(16017, "订单占位中，无法支付!"),
    NoDepositOrder(16018, "押金订单不存在!"),
    ReturnAmountLargeThanDeposit(16019, "退款金额大于押金金额!"),
    ReturnAmountLargeThanRefund(16020, "退款金额大于最高可退金额!"),

    RemoteStopFailure(16021, "远程停止订单失败!"),
    RefundFailure(16022, "退款失败！"),

    NoPackage(16023,"充值套餐不存在！"),
    CreateAlipayOrderFailure(16024,"创建支付宝订单失败！"),
    UnRefundForOrderUncomplete(16025, "订单未完成,不支持退款!"),
    HasUnpaidOrder(16026, "您有未付款的订单!"),
    LowBalance(16027, "余额低于5元，请先充值再充电!"),
    NotStopForNeedCloseStartDoor(16028, "充电柜打开仓门要先关闭后能才结束充电！"),
    MonthCardOnlyOrder(18120,"月卡支付同时只能充电一个订单！"),
    ;

    private Integer code;
    private String msg;
}
